package cn.stazxr.exception;

import java.io.Serial;
import java.util.Arrays;

/**
 * @author talentestors
 * @version 1.0
 * @since 2025.11.02
 **/
public class RoleNeedHasAndPermissionException extends RoleAndPermissionException {
	@Serial
	private static final long serialVersionUID = 6473023448169316738L;

	public RoleNeedHasAndPermissionException(String... roles) {
		super("您没有对应角色" + Arrays.toString(roles) + "的权限");
		this.requires = Arrays.asList(roles);
	}
}
